
import 'package:gluz/app/common/app_device.dart';
import 'package:gluz/app/common/extension/map_extension.dart';

import '../../app_session.dart';

class H5UrlManager {
  static Map<String, dynamic> params = {
    'lang': app.isLangRU() ? 'ru' : 'zh',
    'statusBarHeight': app.getStatusBarHeight().toString(),
    'statusbottom': app.getBottomSafeAreaHeight().toString(),
    'version': app.getAppVersion(),
    'app': '1',
  };

  /// 用户隐私链接
  static String userPrivacyUrl(String type) {
    String url = '${app.env.shopUrl}/pages/user/privacy/privacy?';
    params['type'] = type;
    String queryString = params.toQueryString();
    return url + queryString;
  }

}